package com.shop.cereshop.commons.domain.agent;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@ApiModel(value = "AgentUserRole", description = "角色账户")
@TableName("cere_agent_user_role")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class CereAgentUserRole {
    /**
     * ID
     */
    @ApiModelProperty(value = "ID")
    @TableId(type = IdType.AUTO)
    private Long roleUserId;

    /**
     * 角色ID
     */
    @ApiModelProperty(value = "角色ID")
    private Long agentRoleId;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    private Long agentUserId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
}
